package cn.tedu.luban.order.main.timer;

import cn.tedu.luban.order.main.service.OrderService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class DelayArriveTimer {
    @Autowired
    private OrderService orderService;
    @Scheduled(cron="0,5,10,15,20,25,30,35,40,45,50,55 0/1 * * * ?")
    public void checkTimeout(){
        log.info("定时任务执行");
    }
}
